<?php

if ( !defined( 'BASEPATH' ) ) exit( 'No direct script access allowed' );

/**
 * 扩展CI分页类
 */
class MY_Pagination extends CI_Pagination
{
    var $base_url = ''; // The page we are linking to
    var $prefix = ''; // A custom prefix added to the path.
    var $suffix = ''; // A custom suffix added to the path.
    var $total_rows = 0; // Total number of items (database results)
    var $per_page = 10; // Max number of items you want shown per page
    var $num_links = 2; // Number of "digit" links to show before/after the currently viewed page
    var $cur_page = 0; // The current page being viewed
    var $first_link = '&lsaquo; 首页';
    var $next_link = '&gt;';
    var $prev_link = '&lt;';
    var $last_link = '末页 &rsaquo;';
    var $uri_segment = 3;
    var $full_tag_open = '<ul class="page">';
    var $full_tag_close = '</ul>';
    var $first_tag_open = '<li>';
    var $first_tag_close = '</li>';
    var $last_tag_open = '<li>';
    var $last_tag_close = '</li>';
    var $first_url = ''; // Alternative URL for the First Page.
    var $cur_tag_open = '<li><span class="active">';
    var $cur_tag_close = '</span></li>';
    var $next_tag_open = '<li>';
    var $next_tag_close = '</li>';
    var $prev_tag_open = '<li>';
    var $prev_tag_close = '</li>';
    var $num_tag_open = '<li>';
    var $num_tag_close = '</li>';
    var $page_query_string = FALSE;
    var $query_string_segment = 'per_page';
    var $display_pages = TRUE;
    var $anchor_class = '';
}